#include <gmock/gmock.h>

#include <string>

std::string generate_tmp_filename() {
    return "/tmp/test_file_" + std::to_string(rand());
}

TEST(StringAssert, Regex) {
    EXPECT_THAT(generate_tmp_filename(),
                testing::MatchesRegex("/tmp/test_file_[0-9]+"));
}

TEST(StringAssert, StartWith) {
    EXPECT_THAT(generate_tmp_filename(),
                testing::StartsWith("/tmp/test_file_"));
}

TEST(StringAssert, EqualWithoutCase) {
    EXPECT_THAT("/tmp/test_file", testing::StrCaseEq("/TMP/TEST_FILE"));
}